<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\widget\ajax;

use yii\helpers\Html;

/**
 * AJAX:DropDown
 * @author cleverstone
 * @since ym2.0
 */
class DropDown extends \yii\bootstrap4\Dropdown
{
    /**
     * {@inheritdoc}
     */
    public function init()
    {
        parent::init();

        unset($this->options['id']);
    }

    /**
     * Renders the widget.
     * @throws \Exception
     */
    public function run()
    {
        return $this->renderItems($this->items, $this->options);
    }
}